package org.zxl.api.common.exception;

/**
 * @author zhangxiaolong
 * @date 2025-02-17 20:24
 **/
public enum CloudExceptionEnum {
    PLATFORM_NOT_EXIST("PLATFORM_NOT_EXIST", "平台不存在", new CloudException("PLATFORM_NOT_EXIST")),
    PLATFORM_NOT_AUTH("PLATFORM_NOT_AUTH", "平台未授权"),
    PLATFORM_NOT_SUPPORT("PLATFORM_NOT_SUPPORT", "平台不支持"),
    PLATFORM_NOT_SUPPORT_OPERATION("PLATFORM_NOT_SUPPORT_OPERATION", "平台不支持该操作"),
    PLATFORM_NOT_SUPPORT_OPERATION_PARAM("PLATFORM_NOT_SUPPORT_OPERATION_PARAM", "平台不支持该操作参数"),
    ;

    private String name;
    private String description;
    private CloudException exception;

    CloudExceptionEnum(String name, String description) {
        this.name = name;
        this.description = description;
    }

    CloudExceptionEnum(String name, String description, CloudException exception) {
        this.name = name;
        this.description = description;
        this.exception = exception;
    }
}
